home *** CD-ROM | disk | FTP | other *** search
- Path: mailhost.mwmicro.com!news
- From: aschlies@citynet.net
- Newsgroups: comp.lang.c
- Subject: Re: returning a string from a function
- Date: Thu, 18 Jan 1996 10:00:04 GMT
- Organization: MidWest Micro
- Message-ID: <4dkvo1$a5r@mailhost.mwmicro.com>
- References: <4d4uh8$q46@mailhost.mwmicro.com>
- NNTP-Posting-Host: pd011.mwmicro.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- aschlies@citynet.net (Tony Schliesser) wrote:
-
- >I am learning C with the aid of only a book. I am at an inpass in
- >this process. I have a small function that needs to return a string
- >back to the main routine. I have the following prototype:
-
- >char function_name(char in_string[80])
-
- >{
- > char value[80];
-
- > ...value takes on part of the value of the last 10 characters
- > of in_string.
-
- > return(value);
- >}
-
-
- I want to thank those who posted a followup. As soon as I read the
- first reply, the problem was painfully obvious.
-
- Again, Thanks.
-
- Back to the compiler!
-
- Tony
-
-